namespace Jumpton.SFA.Server.Entity {
    using System;
    using System.Collections.Generic;
    using System.Text;
    using Jumpton.Persistent;
    using System.Data;
    
    
    [Map("Templete")]
    public class Templete : ObjectRow {
        
        public Templete() {
        }
        
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dataRow">DataTable 中的一行数据</param>
        /// <param name="objectTable">存储当前对象的数据表格</param>
        public Templete(System.Data.DataRow dataRow, ObjectTable parent) : 
                base(dataRow, parent) {
        }
        
        [Key("ID",true,true)]
        public decimal ID {
            get {
                return (System.Decimal)GetValue("ID");
            }
            set {
                SetValue("ID", value);
            }
        }
        
        [Field("Content")]
        public string Content {
            get {
                return (System.String)GetValue("Content");
            }
            set {
                SetValue("Content", value);
            }
        }
        
        [Field("Type")]
        public decimal Type {
            get {
                return (System.Decimal)GetValue("Type");
            }
            set {
                SetValue("Type", value);
            }
        }
        
        [Field("IsActive")]
        public bool IsActive {
            get {
                return (System.Boolean)GetValue("IsActive");
            }
            set {
                SetValue("IsActive", value);
            }
        }
        
        [Field("UpdateBy")]
        public string UpdateBy {
            get {
                return (System.String)GetValue("UpdateBy");
            }
            set {
                SetValue("UpdateBy", value);
            }
        }
        
        [Field("LastUpdate")]
        public System.DateTime LastUpdate {
            get {
                return (System.DateTime)GetValue("LastUpdate");
            }
            set {
                SetValue("LastUpdate", value);
            }
        }
    }
}
